#include <stdlib.h>
#include <stdio.h>
#include <vector>

typedef int Real;
void test01();

int main()
{
	test01();
	return 0;
}

void test01()
{
	const int N = 10;
	Real A[N * N] = {};
	std::vector<Real*> TA;
	TA.resize(N);
	Real** pa = TA.data();
	for (int i = 0; i < N; ++i)
		pa[i] = A + i * N;
	for (int i = 0; i < N; ++i)
		for (int j = 0; j < N; ++j)
			pa[i][j] = i * 100 + j;
	for (int i = 0; i < N * N; ++i) {
		if (i % N == 0)printf("\n");
		printf("%6d", A[i]);
	}
}